<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>收货地址</title>
   <%@include file="../common/header.jsp" %>
      <script type="text/javascript">
    	
    	function deleteOne(id){
    		if(confirm("是否删除此条数据")){
    			var url="${pathUrl}/home/center/deleteAddress";
    			$.post(url,{id:id},function(resultObj){
    				if(resultObj.status==1){
    					alert("删除成功！");
    					ajaxData();
    				}else{
    					alert("删除失败！");
    				}
    			});
    		}
    	}
  
    </script>
</head>
<body>

<%@include file="../common/top.jsp" %>
<div class="section clearfix" style="margin-top: 10px;">
    <!--页面左边-->
      	<%@include file="left.jsp" %>
    <!--/页面左边-->

<form id="mainForm" action="${pathUrl }/home/center/addressIndexList" method="post">
    <!--页面左边-->
    <div class="right-auto">
        <div class="bg-wrap" style="min-height:765px;">

            <div class="sub-tit " style="margin: 0px;">
                <a class="add" href="${pathUrl }/home/center/insertAddress"><i class="iconfont icon-reply"></i>新增地址</a>
                <ul>
                    <li class="selected">
                        <a href="javascript:;">收货地址</a>
                    </li>
                </ul>
            </div>

            <div id="address-Main"></div>
             
	         <div id="pager"></div>
        </div>
    </div>
    

    <!--/页面左边-->
 </form>

</div>
<jsp:include page="../../common/laypage.jsp"></jsp:include>
  <script type="text/javascript">
  	$(function(){
  		ajaxData();
  	});
  	
   function ajaxData(){
	   loadTable("mainForm","address-Main","pager");
   }
  </script>
</body>
</html>